import request from '@/utils/request'

// 查询用户套餐列表
export function listThali(query) {
  return request({
    url: '/system/thali/list',
    method: 'get',
    params: query
  })
}

// 查询用户套餐详细
export function getThali(id) {
  return request({
    url: '/system/thali/' + id,
    method: 'get'
  })
}

// 新增用户套餐
export function addThali(data) {
  return request({
    url: '/system/thali',
    method: 'post',
    data: data
  })
}

// 修改用户套餐
export function updateThali(data) {
  return request({
    url: '/system/thali',
    method: 'put',
    data: data
  })
}

// 删除用户套餐
export function delThali(id) {
  return request({
    url: '/system/thali/' + id,
    method: 'delete'
  })
}
